Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / .github / instructions / android-source-set.instructions.md

Displaying Raw • View renderedDownload

.github/instructions/android-source-set.instructions.md 89fe2b58d7aa6f0af30af91e2ccf72f365c80bc7 (89fe2b58) Text, 552 B

---
Tc9d1d9applyTo: "**/androidMain/**/*.kt"
Tc9d1d9---

Tc9d1d9# Android Source-Set Rules

Tff7b72- This is Ta5d6ff`androidMain` — Android framework imports (Ta5d6ff`android.*`, Ta5d6ff`java.*`) are allowed here.
Tff7b72- Do NOT put business logic here. Business logic belongs in Ta5d6ff`commonMain`.
Tff7b72- If you find identical pure-Kotlin logic in both Ta5d6ff`androidMain` and Ta5d6ff`jvmMain`, extract it to Ta5d6ff`commonMain`.
Tff7b72- Use Ta5d6ff`expect`/Ta5d6ff`actual` only for small platform primitives. Prefer interfaces + DI.
Tff7b72- Keep Ta5d6ff`expect` declarations in Ta5d6ff`FileIo.kt` and shared helpers in Ta5d6ff`FileIoUtils.kt` to avoid JVM duplicate class errors.

Served by rngit 1.5.2 - Generated in 0.05s